package com.itany.corejava.code01_Java基础;

/**
 * @author: 石小俊
 * @date: 2023年02月28日 13:46
 * @version: 1.0
 */
public class Test03_基本数据类型 {
    public static void main(String[] args){
        byte b = 1;
        // b = 128; // 超出byte范围,编译报错
//        System.out.println(b);

        short s = 32767;
        // s = 32768; //超出byte范围,编译报错

        int i = 1000000;
        long l = 10000L;

        float f = 512E2F;
//        System.out.println(f);

        char c = '1';
        c = '中';
        c = 'a';
        System.out.println(c);

//        char c2 = '\n';
//        System.out.println(c2);
//        System.out.println(c);

        char c3 = '\u0061';
        System.out.println(c3);

        boolean flag = true;
        System.out.println(flag);
        flag = false;
//        System.out.println(flag);
        if(flag){
            System.out.println("这件事是真的");
        }else{
            System.out.println("这件事是假的");
        }

        String name = "李白";
        name = "李白" + "是" + "唐朝的诗人," + "又是" + "王者荣耀的英雄";
        int age = 20;
        System.out.println(name+"。今年:"+age+"岁");

    }
}
